package com.springboot.entity;

import java.io.Serializable;

public class User implements Serializable {

	private static final long serialVersionUID = 2425641859014459289L;

	private Long id;
    /**
     * 用户名
     */
    private String name;

    /**
     * 中文名
     */
    private String chName;

    /**
     *  分表字段
     */
    private Integer cId;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机
     */
    private String mobile;

    /**
     * 0管理员，1预留，2普通用户，-1无效
     */
    private Integer type;

	public User() {

	}

    public User(Integer cId,String name) {
        this.name = name;
        this.cId = cId;
    }

    public User(String name, String chName, Integer cId, String email, String mobile, Integer type) {
        this.name = name;
        this.chName = chName;
        this.cId = cId;
        this.email = email;
        this.mobile = mobile;
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getChName() {
        return chName;
    }

    public void setChName(String chName) {
        this.chName = chName;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
